<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button class="btn">发送第一请求 在服务器端产生cookie</button>
    <!-- <button></button> -->
    <script src="../jquery/jquery-1.12.4.min.js"></script>
    <script>
        $('.btn').click(()=>{
            $.ajax({
                method:'get',
                url:'http://localhost:3000/testCookie',
                success:(data)=>{
                    console.log(data);
                },
                error:(err)=>{
                    console.log(err);
                }
            })
        })
    </script>
</body>
</html>